package com.github.od.bean;

import com.github.od.util.jwt.IJWTInfo;

/**
* 用户信息模板类
* 
* @author xieweikun
* @version 2017年11月16日 下午4:50:55
*/
public class UserInfo implements IJWTInfo {
	
	private String userId;
	private String userName;
	private String name;
	private String password;
	private int age;

	public UserInfo(String userId, String userName, String name, String password) {
		super();
		this.userId = userId;
		this.userName = userName;
		this.name = name;
		this.password = password;
	}

	public UserInfo() {
		super();
	}
	
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String getName() {
		return name;
	}

	@Override
	public String getId() {
		return userId;
	}

	@Override
	public String getUniqueName() {
		return userName;
	}

}
